;(function (window,undefined) {
    $.fn.lazyload = function(dataoriginal){
        $(this).each((index,item)=>{
            let  view1 = $(window).height()                       
            let  view2 = $(document).scrollTop()                     
            let  viewshow = view1 + view2
            let top = $(item).offset().top
            if(top <= viewshow)
            {
                let src = $(item).attr(dataoriginal)
                $(item).attr("src",src)
            }
        })          
    }
})(window)

